<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .box{
            width: 1200px;
            height: 300px;
            margin: auto;
            display: flex;
        }
        *{
            box-sizing: border-box;
        }
        .list{
            width: 20%;
            height: 100%;
            padding: 10px;
        }
        .list .img{
            width: 100%;
            height: 80%;
            position: relative;
            overflow: hidden;
            padding: 10px;
        }
        img{
            width: 100%;
            position: absolute;
            left: 0;
            top: 0;
            margin: auto;
            bottom: 0;
            right: 0;
        }
        .title{
            width: 100%;
            height: 20%;
            text-align: center;
        }
    </style>
</head>
<body>
    <div class="box">
        {%for item in arr%}
        <div class="list">
            <div class="img">
                < img src="img/{{datas{item.id}.img}}" alt="">
            </div>
            <div class="title">
                    {{datas{item.id}.name}}
                {{item.angle}}
            </div>
        </div>
        {%endfor%}
    </div>
</body>
</html>